#pragma once

#include "dynamictreewidgetitembase.h"

class QLineEdit;

namespace PublicGui
{
	class DynamicSingleText:public DynamicTreeWidgetItemBase
	{
		Q_OBJECT
	public:
		DynamicSingleText(const QString& mtext = "");
		~DynamicSingleText();
		virtual void setItemData(CoreBase::ActorBase* actorptr,const QString& tag);
		virtual QVariant getItemData();
		virtual void setLabelTextList(QStringList mtext);
	protected:
		virtual void initializationUi();
		virtual void emitValueChanged();
		QLineEdit*				_editL;
		QString					_singleText;
		QString					_oldValue;
	private slots:
		void slotValueChanged(const QString&);
	protected slots:
		virtual void slotFocusChanged(QWidget*,QWidget*);
	};
}